package com.hdy.login.entity;

import com.hdy.framework.common.entity.Entity;
import com.hdy.login.dto.UserDto;

/*
	by 何栋宇
	2013-1-19
 */
public class User extends Entity{
	private static final long serialVersionUID = 1541791159838455417L;
	private Long id;
	private String name;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public UserDto toDto(){
		UserDto dto = new UserDto();
		dto.setId(id);
		dto.setName(name);
		return dto;
	}
	
}
